package cn.isaac.firstkotlin.domain

import cn.isaac.firstkotlin.domain.Forecast

/**
 * Created by RaoWei on 2017/5/22 9:55.
 */

data class ForecastList(val city: String, val country: String, val dailyForecast:List<Forecast>) {
//    operator fun get(positin: Int) : Forecast = dailyForecast[positin]
//    fun size(): Int = dailyForecast.size
    operator fun get(positin: Int)  = dailyForecast[positin]
    fun size() = dailyForecast.size
}

data class Forecast(val date: String, val description: String, val high: Int, val low: Int, val iconUrl: String)